package com.bawei.module_message.model

sealed class MessageEvent {
    // 系统通知
    data class SystemNotice(
        val state: RequestEvent<List<MessageModelItem>>
    ) : MessageEvent()

    // 物业服务
    data class PropertyService(
        val state: RequestEvent<List<MessageModelItem>>
    ) : MessageEvent()

    // 车位管理
    data class ParkingManage(
        val state: RequestEvent<List<MessageModelItem>>
    ) : MessageEvent()
}

// 请求状态（通用）
sealed class RequestEvent<out T> {
    object Loading : RequestEvent<Nothing>()
    data class Success<out T>(val data: T) : RequestEvent<T>()
    data class Failed(val message: String) : RequestEvent<Nothing>()
}